package com.basic.business.dingTalk.domain;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.basic.common.core.domain.BaseEntity;
import com.basic.common.utils.StringUtils;
import com.basic.common.utils.uuid.ULID;
import lombok.Getter;
import lombok.Setter;

/**
 * 钉钉配置对象 t_ding_talk_mgmt
 * 
 * @author zhaoxy_jn@163.com
 * @date 2025-05-12
 */
@Getter
@Setter
@ExcelIgnoreUnannotated
public class TDingTalkMgmt extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 群聊名称 */
    @ExcelProperty(value = "群聊名称")
    private String chatName;

    /** 群聊类型 */
    @ExcelProperty(value = "群聊类型")
    private String chatType;

    /** 钉钉机器人webhook */
    @ExcelProperty(value = "钉钉机器人webhook")
    private String webhook;

    /** 钉钉机器人加签 */
    @ExcelProperty(value = "钉钉机器人加签")
    private String secret;

    /** 追加@人 */
    @ExcelProperty(value = "追加@人")
    private String atMobiles;


    /** 状态 正常：NORMAL 删除：DELETED */
    @ExcelProperty(value = "状态")
    private String dingStatus;

    public void setId(String id) {
        this.id = StringUtils.isNotEmpty(id) ? id : ULID.getId();
    }
}
